//
//  CommonTools.swift
//  VVeibo21
//
//  Created by Apple on 16/10/22.
//  Copyright © 2016年 Apple. All rights reserved.
//
/*
    - 等同于 OC中的 pch 文件   全局共享
 */
import UIKit

//// 微博中需要使用的通知名字
//let HMSWITCHROOTVCNOTI = "HMSWITCHROOTVCNOTI"
//
////  点击表情按钮的通知名
//let DidSelectedEmoticonButtonNotification = "DidSelectedEmoticonButtonNotification"
////  点击删除表情按钮的通知
//let DidSelectedDeleteEmotionButtonNotification = "DidSelectedDeleteEmotionButtonNotification"
//
//
//// 微博相关信息
//let HMAPPKEY = "807655454"
//let HMAPPSECRET = "299d0639437f607f97c37e624947bffa"
//let HMREDIRECTURI = "http://www.baidu.com"
//// 微博账号和密码
////let HMWBNAME = "rangyuan05788697@163.com"
////let HMWBPASSWD = "bbb333"
//let HMWBNAME = "jubeisi0516873@163.com"
//let HMWBPASSWD = "958794"


// 屏幕的宽度和高度
let SCREENW = UIScreen.main.bounds.width
let SCREENH = UIScreen.main.bounds.height
// 山寨微博的主题颜色
//let THEMECOLOR = UIColor.orange
// 常用字体大小
//let HMBigFontSize: CGFloat = 18
//let HMNormalFontSize: CGFloat = 14
//let HMSmallFontSize: CGFloat = 10

// 随机颜色
func MYRandomColor() -> UIColor{
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
}
